Feat/aliases#402
Merged
Merged
Conversation
Add support for using npm package names (e.g., @scope/my-module) as aliases for control file names (e.g., my-module) in deploy, revert, verify, and tag commands. Changes: - Add package-alias.ts utility with buildPackageAliasMap() and resolvePackageAlias() - Update deploy.ts, revert.ts, verify.ts, tag.ts to resolve package aliases - Update module-utils.ts selectPackage() to accept aliased names - Update deployed-changes.ts to accept aliased names with cwd parameter This is a CLI-only change that keeps core logic unchanged. Users can now use: pgpm deploy --package @some-scope/my-module instead of: pgpm deploy --package my-module Co-Authored-By: Dan Lynch <pyramation@gmail.com>
Add integration tests that verify: - Deploy using npm package name alias (@test-scope/my-first) instead of control file name - Backward compatibility with control file names - Deploy to specific change using aliased name - Revert using aliased name These tests modify the fixture's package.json to have a scoped npm name that differs from the control file name, then verify the CLI commands correctly resolve the alias. Co-Authored-By: Dan Lynch <pyramation@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.